package com.samtech.dto;

import java.io.Serializable;
import java.math.BigDecimal;

public class Sale implements Serializable {
	/**
	 * 
	 */
	private static final long serialVersionUID = 710861837697631153L;
	private BigDecimal amount;
	private String branchName;

	
	public Sale() {
		
	}
	
	
	public Sale(String branchName, BigDecimal amount) {
		super();
		this.branchName = branchName;
		this.amount = amount;
	}


	public BigDecimal getAmount() {
		return amount;
	}

	public void setAmount(BigDecimal amount) {
		this.amount = amount;
	}

	public String getBranchName() {
		return branchName;
	}

	public void setBranchName(String branchName) {
		this.branchName = branchName;
	}

	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result
				+ ((branchName == null) ? 0 : branchName.hashCode());
		return result;
	}

	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		Sale other = (Sale) obj;
		if (branchName == null) {
			if (other.branchName != null)
				return false;
		} else if (!branchName.equals(other.branchName))
			return false;
		return true;
	}
	
}
